import LayoutImmersive from '@/layout/LayoutImmersive/index.vue';
import type { AppRoute } from '@/types/route';

const blogEditRouter: AppRoute[] = [
  {
    path: '/blogEdit',
    component: LayoutImmersive,
    redirect: '/blogEdit/index',
    name: 'blogEdit',
    meta: {
      title: '编辑',
      icon: 'chat-square',
      roles: ['GUEST', 'USER']
      // watermark: true
    },
    children: [
      {
        path: ':blogId',
        component: () => import('@/views/blogCreate/index.vue'),
        name: 'blogEditShow',
        meta: {
          title: '开始创作',
          icon: 'chat-square',
          roles: ['GUEST', 'USER']
        },
        hidden: true
      }
    ],
    hidden: true
  }
];

export default blogEditRouter;
